<div class="warpper">
  <div ng-controller="demoListController" class="dataListController">
    <div class="btnGroup">
      <button class="btn" ng-click="add()">添加</button>
    </div>
    <div class="dataListContainer">
      <ul>
        <li ng-repeat="item in students">
          <div>
            <div class="head">
              <p class="title">{{item.name}}</p>
            </div>
            <img src="{{item.icon}}" class="thumb" />
            <div class="simpleInfo">
              <span>班级:{{item.class}}</span>
              <span>类型:{{item.type}}</span>
              <span><a href="javascript:void(0)" ng-click="edit($index)">编辑</a></span>
              <span><a href="javascript:void(0)" ng-click="remove($index)">删除</a></span>
            </div>
          </div>
        </li>
      </ul>
    </div>
    <div ng-show="isShow" ng-controller="demoFormController" class="dataFormController">
      <form rol="form" name="form" class="form" ng-submit="submit()">
        <a href="javascript:void(0)" class="close" ng-click="close(false)">close</a>
        <h2 class="title">{{title}}</h2>
        <ul>
          <li>
            <div class="col3">名字:</div>
            <div class="co17"><input type="text" required ng-model="formData.name"></div>
          </li>
          <li>
            <div class="col3">班级</div>
            <div class="co17"><input type="text" required ng-model="formData.class"></div>
          </li>
          <li>
            <div class="col3">类型</div>
            <div class="co17"><input type="text" required ng-model="formData.type"></div>
          </li>
        </ul>
        <div class="text-center">
          <input ng-disabled="form.$invalid" class="btn" type="submit" value="提交">
        </div>
      </form>
    </div>
  </div>

</div>